package com.cjx.admin.component;

import com.cjx.admin.api.AdminResourceService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.ApplicationArguments;
import org.springframework.boot.ApplicationRunner;
import org.springframework.stereotype.Component;

/**
*@Description 资源角色初始化器
*@Verson v1.0.0
*@Author cjunxian
*@Date
*/
@Component
public class ResourceRoleRunner implements ApplicationRunner {

    @Autowired
    AdminResourceService adminResourceService;

    @Override
    public void run(ApplicationArguments args) throws Exception {
        adminResourceService.initRoleResource();
    }
}
